<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <input type="text" id="aname" placeholder="输入用户名" />
    <input type="password" name="" id="pword" placeholder="输入密码" />
    <button id="btn">提交</button>
    <script>
      var nameEle = document.getElementById("aname");
      var pwordEle = document.getElementById("pword");
      var btnEle = document.getElementById("btn");

      btnEle.onclick = function () {
        window.location.href = `10强化作业1target.html?username=${nameEle.value}&uPassWord=${pwordEle.value}`;
      };
    </script>
    <!-- <form action="10强化作业1target.html" method="get">
       <input type="text" id="aname" placeholder="输入用户名" />
          <input type="password" name="" id="pword" placeholder="输入密码" />
          <button id="btn" type="submit">提交</button>
       </form> -->
  </body>
</html>
